-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: improve content ai safety logging and responses #12
base: main
Are you sure you want to change the base?
Conversation
Code Review FeedbackSecurity & Best Practices
Code Quality
Functionality Improvements
|
6abe546
to
736b7dd
Compare
Review of Git Diff
|
736b7dd
to
3a71cb8
Compare
General ImprovementsGitHub Actions Workflow:
|
🤖AEP PR SUMMARY🤖
.github/workflows/run-test-suite.yml
:SYSTEM_PROMPT_FILE
to "system_prompts/prompts.json".azure_openai_api_version
to "2023-12-01-preview".docs/mkdocs/aep-docs/docs/design.md
:src/helpers/open_ai.py
:call_ai_content_safety
for checking prompt injection and handling responses from the AI Content Safety Service.src/helpers/prompts.py
:check_for_prompt_inj
method to handle prompt injection detection based on character count and checking individual prompt chunks usingopenai.call_ai_content_safety
.src/main.py
:create_predefined_query
andcreate_info_query
methods.src/tests/test_prompt_ops.py
: